﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="WhiteRepositoryScheme"
    targetNamespace="http://tempuri.org/WhiteRepositoryScheme.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/WhiteRepositoryScheme.xsd"
    xmlns:mstns="http://tempuri.org/WhiteRepositoryScheme.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" >

  <xs:element name="Controls">
    <xs:complexType>
            <xs:sequence maxOccurs="unbounded">
              <xs:element name="Control">
                <xs:complexType>
                  <xs:attribute name="id" use="required" >
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:minLength value="3" />
                        <xs:pattern value="[^\s]*" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="properties" use="required" />
                  <xs:attribute name="controltype" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:enumeration value="Button" />
                        <xs:enumeration value="Calendar" />
                        <xs:enumeration value="CheckBox" />
                        <xs:enumeration value="ComboBox" />
                        <xs:enumeration value="Custom" />
                        <xs:enumeration value="DataGrid" />
                        <xs:enumeration value="DataItem" />
                        <xs:enumeration value="Document" />
                        <xs:enumeration value="Edit" />
                        <xs:enumeration value="Group" />
                        <xs:enumeration value="Header" />
                        <xs:enumeration value="HeaderItem" />
                        <xs:enumeration value="Hyperlink" />
                        <xs:enumeration value="Image" />
                        <xs:enumeration value="List" />
                        <xs:enumeration value="ListItem" />
                        <xs:enumeration value="Menu" />
                        <xs:enumeration value="MenuBar" />
                        <xs:enumeration value="MenuItem" />
                        <xs:enumeration value="Pane" />
                        <xs:enumeration value="ProgressBar" />
                        <xs:enumeration value="RadioButton" />
                        <xs:enumeration value="ScrollBar" />
                        <xs:enumeration value="Separator" />
                        <xs:enumeration value="Slider" />
                        <xs:enumeration value="Spinner" />
                        <xs:enumeration value="SplitButton" />
                        <xs:enumeration value="SplitButton" />
                        <xs:enumeration value="StatusBar" />
                        <xs:enumeration value="Tab" />
                        <xs:enumeration value="TabItem" />
                        <xs:enumeration value="Table" />
                        <xs:enumeration value="Text" />
                        <xs:enumeration value="Thumb" />
                        <xs:enumeration value="TitleBar" />
                        <xs:enumeration value="ToolBar" />
                        <xs:enumeration value="ToolTip" />
                        <xs:enumeration value="Tree" />
                        <xs:enumeration value="TreeItem" />
                        <xs:enumeration value="Window" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="description" type="xs:string" use="optional" />
                  <xs:attribute name="image" type="xs:string" use="optional" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
</xs:schema>